package com.example.springsecurity.security.controller;

import com.example.springsecurity.security.service.MyUserDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class JumpPageController {

    @Autowired
    private MyUserDetailsService myUserDetailsService;

    //登陆成功返回
    @GetMapping("/success")
    public String success(){
        return "success";
    }


    //登陆失败返回
    @GetMapping("/failure")
    public String failure(){
        return "failure";
    }
}
